]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Disable OSK gesture on lock screen
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 25 Sep 2017 13:26:14 +0000 (15:26 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 29 Sep 2017 13:59:10 +0000 (15:59 +0200)
On the screen shield, the only possible interaction is lifting the
shield. The on-screen-keyboard is not useful for that, and the drag
gesture from the bottom may in fact conflict with dragging up the
shield, so disable it.

https://bugzilla.gnome.org/show_bug.cgi?id=788339

js/ui/windowManager.js

index dbc2acf3df5ef823f3662585e0a86b3a9f78d765..a59b3fd92016baaa0d2cb5fc2cb12879413fc724 100644 (file)
@@ -985,7 +985,8 @@ var WindowManager = new Lang.Class({
         gesture.connect('activated', Lang.bind(this, this._switchApp));
         global.stage.add_action(gesture);
 
-        gesture = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM, Shell.ActionMode.ALL);
+        let mode = Shell.ActionMode.ALL & ~Shell.ActionMode.LOCK_SCREEN;
+        gesture = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM, mode);
         gesture.connect('activated', Lang.bind(this, function() {
             Main.keyboard.show(Main.layoutManager.bottomIndex);
         }));